package thread;

import java.util.Optional;

public class ThreadInfoDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        String name = main.getName();
        System.out.println("名字:" + name);

        long id = main.getId();
        System.out.println("唯一标识:" + id);
    }
}
